package com.aspose.cells;

import java.util.ArrayList;

class zaqh {
   private static float a = com.aspose.cells.a.d.zfq.a();
   private static final com.aspose.cells.b.c.a.za b = new com.aspose.cells.b.c.a.za(new String[]{"square", "circle", "diamond", "arrow-up", "arrow-down", "arrow-right", "arrow-left", "plus", "star", "hourglass", "bow-tie", "top", "bottom", "start", "end", "top-end", "chart:area", "chart:line", "chart:bar", "chart:circle", "chart:ring", "chart:scatter", "chart:radar", "chart:stock", "cylinder", "pyramid", "cone", "in", "px", "cm", "mm", "#ff0000", "#008000", "#0000ff", "Fine_20_Dotted", "Ultrafine_20_Dashed", "Ultrafine_20_2_20_Dots_20_3_20_Dashes", "_32__20_Dots_20_1_20_Dash", "_33__20_Dashes_20_3_20_Dots_20__28_var_29_", "middle", "justify", "right", "center", "left", "inside", "outside", "outside-start", "outside-end", "near-axis-other-side"});

   static int a(String var0) {
      switch(b.a(var0)) {
      case 0:
         return 7;
      case 1:
         return 1;
      case 2:
         return 3;
      case 3:
         return 9;
      case 4:
         return 4;
      case 5:
         return 2;
      case 6:
      case 7:
         return 6;
      case 8:
         return 8;
      case 9:
      case 10:
         return 10;
      default:
         return 0;
      }
   }

   static int b(String var0) {
      switch(b.a(var0)) {
      case 11:
         return 2;
      case 12:
         return 0;
      case 13:
         return 4;
      case 14:
      case 15:
         return 1;
      default:
         return 3;
      }
   }

   static int c(String var0) {
      switch(b.a(var0)) {
      case 16:
         return 0;
      case 17:
         return 37;
      case 18:
         return 14;
      case 19:
         return 44;
      case 20:
         return 35;
      case 21:
         return 60;
      case 22:
         return 57;
      case 23:
         return 65;
      default:
         return 14;
      }
   }

   static int d(String var0) {
      switch(b.a(var0)) {
      case 24:
         return 3;
      case 25:
         return 1;
      case 26:
         return 4;
      default:
         return 0;
      }
   }

   static boolean e(String var0) {
      return var0 == null || "".equals(var0);
   }

   static int a(double var0, String var2) {
      double var3 = d(var0, var2);
      return (int)(var3 * var0 / 72.0D + 0.5D);
   }

   static double b(double var0, String var2) {
      return d(var0, var2) / 72.0D * 2.54D;
   }

   static double c(double var0, String var2) {
      return d(var0, var2) / 72.0D;
   }

   static double d(double var0, String var2) {
      if (var2 != null && !"".equals(var2)) {
         char var3 = var2.charAt(var2.length() - 1);
         if (var3 >= '0' && var3 <= '9') {
            return k(var2);
         } else {
            String var4 = var2.substring(var2.length() - 2);
            var2 = var2.substring(0, 0 + (var2.length() - 2));
            double var5 = k(var2);
            switch(b.a(var4)) {
            case 27:
               var5 *= 72.0D;
               break;
            case 28:
               var5 = var5 * 72.0D / var0;
               break;
            case 29:
               var5 = var5 * 72.0D / 2.54D;
               break;
            case 30:
               var5 = var5 * 72.0D / 25.4D;
            }

            return var5;
         }
      } else {
         return 0.0D;
      }
   }

   static String f(String var0) {
      if (var0.charAt(0) == '[') {
         var0 = var0.substring(1, 1 + (var0.length() - 2));
      }

      int var1 = var0.indexOf(58);
      String[] var2;
      if (var1 != -1) {
         var2 = com.aspose.cells.b.a.zv.d(var0, ':');
         StringBuilder var3 = new StringBuilder();

         for(int var4 = 0; var4 < var2.length; ++var4) {
            if (var2[var4].charAt(0) == '$') {
               var2[var4] = var2[var4].substring(1);
            }

            var1 = var2[var4].indexOf(46);
            if (var1 == 0) {
               var2[var4] = var2[var4].substring(1);
            } else {
               var2[var4] = var2[var4].replace('.', '!');
            }

            var3.append(var2[var4]);
            if (var4 != var2.length - 1) {
               var3.append(':');
            }
         }

         return com.aspose.cells.b.a.zr.a(var3);
      } else {
         var2 = com.aspose.cells.b.a.zv.d(var0, '.');
         if (var2[0].charAt(0) == '$') {
            var2[0] = var2[0].substring(1);
         }

         return var2[0] + "!" + var2[1];
      }
   }

   static int[] a(int var0, int var1, int var2, int var3) {
      int var4 = var0 < var2 ? var2 : var0;
      int var5 = var1 > var3 ? var3 : var1;
      return var4 > var5 ? null : new int[]{var4, var5};
   }

   static int[] a(Worksheet var0) {
      Range[] var1 = var0.getPageSetup().b(true);
      int[] var2 = new int[]{-1, -1, -1, -1};
      if (var1 == null) {
         return var2;
      } else {
         if (var1[0] != null) {
            var2[0] = Math.min(var1[0].a().StartRow, var1[0].a().EndRow);
            var2[1] = Math.max(var1[0].a().StartRow, var1[0].a().EndRow);
         }

         if (var1[1] != null) {
            var2[2] = Math.min(var1[1].a().StartColumn, var1[1].a().EndColumn);
            var2[3] = Math.max(var1[1].a().StartColumn, var1[1].a().EndColumn);
         }

         return var2;
      }
   }

   static String a(String var0, String var1) {
      if (var0 != null && !"".equals(var0)) {
         if (var0.charAt(0) == '=') {
            var0 = var0.substring(1);
         }

         if (var0.charAt(0) == '(') {
            var0 = var0.substring(1, 1 + (var0.length() - 2));
         }

         String[] var2 = com.aspose.cells.b.a.zv.d(var0, ',');
         StringBuilder var3 = new StringBuilder();

         for(int var4 = 0; var4 < var2.length; ++var4) {
            a(var3, var2[var4], var1);
            if (var4 != var2.length - 1) {
               var3.append(' ');
            }
         }

         return com.aspose.cells.b.a.zr.a(var3);
      } else {
         return var0;
      }
   }

   static void a(StringBuilder var0, String var1, String var2) {
      if (var1 != null && !"".equals(var1)) {
         if (var1.charAt(0) == '=') {
            var1 = var1.substring(1);
         }

         String[] var3 = com.aspose.cells.b.a.zv.d(var1, ':');
         if (var3[0].indexOf(33) != -1) {
            var0.append(var3[0].replace('!', '.'));
         } else {
            var0.append(var2);
            var0.append('.');
            var0.append(var3[0]);
         }

         if (var3.length > 1) {
            var0.append(':');
            if (var3[1].indexOf(46) != -1) {
               var0.append(var3[1].replace('!', '.'));
            } else {
               var0.append(var2);
               var0.append('.');
               var0.append(var3[1]);
            }
         }

      }
   }

   static String a(Color var0) {
      String var1 = "K" + com.aspose.cells.a.c.zp.c(var0.getR() & 255) + com.aspose.cells.a.c.zp.c(var0.getG() & 255) + com.aspose.cells.a.c.zp.c(var0.getB() & 255);
      return var1;
   }

   static String b(Color var0) {
      String var1 = "#" + com.aspose.cells.a.c.zp.c(var0.getR() & 255) + com.aspose.cells.a.c.zp.c(var0.getG() & 255) + com.aspose.cells.a.c.zp.c(var0.getB() & 255);
      return var1;
   }

   static String g(String var0) {
      switch(b.a(var0.toLowerCase())) {
      case 31:
         return "RED";
      case 32:
         return "GREEN";
      case 33:
         return "BLUE";
      default:
         return null;
      }
   }

   static Color h(String var0) {
      if (var0 == null) {
         return Color.getEmpty();
      } else if (var0.startsWith("#")) {
         return com.aspose.cells.b.a.b.zf.a(var0);
      } else {
         int var4;
         int var10;
         if (var0.startsWith("rgb")) {
            String var7 = var0.substring(4);
            String var8 = var7.substring(0, 0 + (var7.length() - 1));
            String[] var9 = com.aspose.cells.b.a.zv.d(var8.trim(), ',');
            var4 = zase.C(var9[0].trim());
            var10 = zase.C(var9[1].trim());
            int var6 = zase.C(var9[2].trim());
            return Color.fromArgb(var4, var10, var6);
         } else {
            int var1 = 0;
            char[] var2 = var0.toCharArray();
            boolean var3 = true;

            for(var4 = 0; var4 < var2.length; ++var4) {
               boolean var5 = true;
               switch(var2[var4]) {
               case '0':
               case '1':
               case '2':
               case '3':
               case '4':
               case '5':
               case '6':
               case '7':
               case '8':
               case '9':
                  var10 = var2[var4] - 48;
                  break;
               case ':':
               case ';':
               case '<':
               case '=':
               case '>':
               case '?':
               case '@':
               case 'G':
               case 'H':
               case 'I':
               case 'J':
               case 'K':
               case 'L':
               case 'M':
               case 'N':
               case 'O':
               case 'P':
               case 'Q':
               case 'R':
               case 'S':
               case 'T':
               case 'U':
               case 'V':
               case 'W':
               case 'X':
               case 'Y':
               case 'Z':
               case '[':
               case '\\':
               case ']':
               case '^':
               case '_':
               case '`':
               default:
                  var10 = -1;
                  break;
               case 'A':
               case 'B':
               case 'C':
               case 'D':
               case 'E':
               case 'F':
               case 'a':
               case 'b':
               case 'c':
               case 'd':
               case 'e':
               case 'f':
                  var10 = (var2[var4] | 32) - 97 + 10;
               }

               if (var10 == -1) {
                  var3 = false;
                  break;
               }

               var1 = var1 << 4 | var10;
            }

            return var3 ? Color.fromArgb(var1) : Color.a(var0);
         }
      }
   }

   static int i(String var0) {
      int var1 = com.aspose.cells.b.a.zo.a(var0);
      if (var1 > 90 && var1 < 270) {
         return 180 - var1;
      } else {
         return var1 >= 270 ? 360 - var1 : var1;
      }
   }

   static int j(String var0) {
      switch(b.a(var0)) {
      case 34:
         return 1;
      case 35:
         return 0;
      case 36:
         return 3;
      case 37:
         return 2;
      case 38:
         return 4;
      default:
         return 6;
      }
   }

   static String a(double var0) {
      return com.aspose.cells.a.c.zp.b(var0);
   }

   static String a(int var0) {
      return com.aspose.cells.a.c.zp.a(var0);
   }

   static String a(short var0) {
      return com.aspose.cells.a.c.zp.a((int)var0);
   }

   static String b(double var0) {
      return com.aspose.cells.a.c.zp.b(var0);
   }

   static double k(String var0) {
      return com.aspose.cells.b.a.zn.a(var0, com.aspose.cells.b.a.c.za.b());
   }

   static String b(int var0) {
      switch(var0) {
      case 0:
         return null;
      case 1:
      case 3:
      case 9:
      case 11:
         return "1.0pt solid ";
      case 2:
      case 8:
      case 10:
      case 12:
      case 13:
         return "2.5pt solid ";
      case 4:
      case 7:
         return "0.05pt solid ";
      case 5:
         return "4.0pt solid ";
      case 6:
         return "3.0pt double ";
      default:
         return "1.0pt solid ";
      }
   }

   static String a(boolean var0) {
      return var0 ? "true" : "false";
   }

   static String[] l(String var0) {
      ArrayList var1 = new ArrayList();
      int var2 = 0;

      label63:
      for(int var3 = 0; var3 < var0.length(); ++var3) {
         char var4 = var0.charAt(var3);
         switch(var4) {
         case '"':
            if (var3 == var0.length() - 1) {
               break;
            }

            ++var3;

            while(true) {
               if (var3 >= var0.length() || var0.charAt(var3) == '"') {
                  continue label63;
               }

               ++var3;
            }
         case ';':
            if (var3 - var2 > 1) {
               com.aspose.cells.b.a.a.ze.a(var1, (Object)var0.substring(var2, var2 + (var3 - var2)));
            } else {
               com.aspose.cells.b.a.a.ze.a(var1, (Object)"");
            }

            var2 = var3 + 1;
            break;
         case '[':
            if (var3 != var0.length() - 1) {
               ++var3;

               while(var3 < var0.length() && var0.charAt(var3) != ']') {
                  ++var3;
               }
            }
         }
      }

      if (var2 < var0.length()) {
         com.aspose.cells.b.a.a.ze.a(var1, (Object)var0.substring(var2));
      }

      String[] var6 = new String[var1.size()];

      for(int var5 = 0; var5 < var1.size(); ++var5) {
         var6[var5] = (String)var1.get(var5);
      }

      return var6;
   }

   static boolean m(String var0) {
      return "true".equals(var0);
   }

   static double n(String var0) {
      return com.aspose.cells.b.a.zn.a(var0, com.aspose.cells.b.a.c.za.b());
   }

   static int o(String var0) {
      return com.aspose.cells.b.a.zo.a(var0, com.aspose.cells.b.a.c.za.b());
   }

   static DateTime p(String var0) {
      int[] var1 = new int[7];
      int var2 = 0;

      for(int var3 = 0; var3 < var0.length(); ++var3) {
         if (Character.isDigit(var0.charAt(var3))) {
            while(var3 < var0.length()) {
               if (!Character.isDigit(var0.charAt(var3))) {
                  ++var2;
                  if (var2 >= 7) {
                     var3 = var0.length();
                  } else {
                     --var3;
                  }
                  break;
               }

               var1[var2] = var1[var2] * 10 + var0.charAt(var3) - 48;
               ++var3;
            }
         }
      }

      return new DateTime(var1[0], var1[1], var1[2], var1[3], var1[4], var1[5], var1[6] > 1000 ? 0 : var1[6]);
   }

   static double q(String var0) {
      double var1 = 0.0D;
      int var3 = 0;

      for(int var4 = 0; var4 < var0.length(); ++var4) {
         switch(var0.charAt(var4)) {
         case '0':
         case '1':
         case '2':
         case '3':
         case '4':
         case '5':
         case '6':
         case '7':
         case '8':
         case '9':
            var3 = var3 * 10 + var0.charAt(var4) - 48;
         case ':':
         case ';':
         case '<':
         case '=':
         case '>':
         case '?':
         case '@':
         case 'A':
         case 'B':
         case 'C':
         case 'D':
         case 'E':
         case 'F':
         case 'G':
         case 'I':
         case 'J':
         case 'K':
         case 'L':
         case 'N':
         case 'O':
         case 'P':
         case 'Q':
         case 'R':
         default:
            break;
         case 'H':
            var1 += (double)((float)var3 / 24.0F);
            var3 = 0;
            break;
         case 'M':
            var1 += (double)((float)var3 / 1440.0F);
            var3 = 0;
            break;
         case 'S':
            var1 += (double)((float)var3 / 86400.0F);
            var3 = 0;
         }
      }

      return var1;
   }

   static String c(double var0) {
      StringBuilder var2 = new StringBuilder();
      if (var0 != 0.0D) {
         String var3 = null;
         if (var0 > 0.0D) {
            var3 = "PT";
         } else {
            var3 = "-PT";
            var0 = -var0;
         }

         var2.append(var3);
         var0 *= 24.0D;
         double var4 = Math.floor(var0);
         double var6 = var0 - var4;
         if (10.0D - var4 > 0.0D) {
            var2.append(0);
         }

         var2.append((int)var4);
         if (var6 == 0.0D) {
            var2.append("H00M00S");
            return com.aspose.cells.b.a.zr.a(var2);
         } else {
            var6 *= 60.0D;
            double var8 = Math.floor(var6);
            double var10 = var6 - var8;
            var2.append("H");
            if (10.0D - var8 > 0.0D) {
               var2.append(0);
            }

            var2.append((int)var8);
            if (var10 == 0.0D) {
               var2.append("M00S");
               return com.aspose.cells.b.a.zr.a(var2);
            } else {
               var10 *= 60.0D;
               double var12 = Math.floor(var10);
               var2.append("M");
               if (10.0D - var12 > 0.0D) {
                  var2.append(0);
               }

               var2.append((int)var12);
               var2.append("S");
               return com.aspose.cells.b.a.zr.a(var2);
            }
         }
      } else {
         return "PT00H00M00S";
      }
   }

   static String c(int var0) {
      switch(var0) {
      case 0:
         return "bottom";
      case 1:
         return "middle";
      case 2:
      case 3:
      case 4:
      case 5:
      case 7:
      case 8:
      default:
         throw new CellsException(6, "Invalid TextAlignmentType val");
      case 6:
         return "justify";
      case 9:
         return "top";
      }
   }

   static int r(String var0) {
      switch(b.a(var0)) {
      case 11:
         return 9;
      case 12:
         return 0;
      case 39:
         return 1;
      case 40:
         return 6;
      default:
         throw new CellsException(6, "Invalid ShapeTextAnchor string val");
      }
   }

   static String d(int var0) {
      switch(var0) {
      case 1:
         return "center";
      case 2:
      case 3:
      case 4:
      case 5:
      default:
         throw new CellsException(6, "Invalid TextAlignmentType val");
      case 6:
         return "justify";
      case 7:
         return "left";
      case 8:
         return "right";
      }
   }

   static int s(String var0) {
      switch(b.a(var0)) {
      case 40:
         return 6;
      case 41:
         return 8;
      case 42:
         return 1;
      case 43:
         return 7;
      default:
         throw new CellsException(6, "Invalid ShapeTextAlignType string val");
      }
   }

   static double t(String var0) {
      return (double)com.aspose.cells.b.a.zo.a(var0.substring(0, 0 + (var0.length() - 1))) / 100.0D;
   }

   static String d(double var0) {
      return com.aspose.cells.b.a.zn.b(var0 * 100.0D) + "%";
   }

   static boolean u(String var0) {
      return !"no-wrap".equals(var0);
   }

   static String b(boolean var0) {
      return var0 ? "wrap" : "no-wrap";
   }

   static String v(String var0) {
      int var1 = var0.indexOf("./");
      return var1 == 0 ? var0.substring(2) : var0;
   }

   public static Object[] a(Workbook var0) {
      var0.getWorksheets().p();
      Object[] var1 = new Object[]{var0.getWorksheets().z(), null, null};
      zbvx var2 = var0.getWorksheets().B();
      var1[1] = var0.getWorksheets().B();
      int var3 = 0;
      String var4 = null;
      ArrayList var5 = new ArrayList();
      var1[2] = var5;

      for(int var6 = 0; var6 < var2.getCount(); ++var6) {
         Style var7 = var2.a(var6);
         int[] var8 = new int[]{var3};
         String[] var9 = new String[]{var4};
         var7.a(var8, var9);
         var3 = var8[0];
         var4 = var9[0];
         if (var3 > 0) {
            boolean var10 = false;

            int var11;
            zaqp var12;
            for(var11 = 0; var11 < var5.size(); ++var11) {
               var12 = (zaqp)var5.get(var11);
               if (var12.a == var3) {
                  var10 = true;
                  break;
               }

               if (var12.a > var3) {
                  break;
               }
            }

            if (!var10) {
               var12 = new zaqp();
               var12.a = var3;
               var12.b = var4;
               if (var11 >= var5.size()) {
                  com.aspose.cells.b.a.a.ze.a(var5, (Object)var12);
               } else {
                  var5.add(var11, var12);
               }
            }
         }
      }

      return var1;
   }

   public static String a(WorksheetCollection var0, Name var1) {
      if (var1.b() != null && var1.b().length > 2) {
         zaqg var2 = new zaqg(var0);
         byte[] var3 = var1.b();
         return var2.a(-1, var3, 0, 0, false);
      } else {
         return null;
      }
   }

   public static String e(int var0) {
      switch(var0) {
      case 0:
      case 1:
      case 2:
      case 3:
      case 4:
      case 5:
         return "chart:area";
      case 6:
      case 7:
      case 8:
      case 9:
      case 10:
      case 11:
      case 14:
      case 15:
      case 16:
      case 17:
      case 18:
      case 19:
      case 20:
      case 21:
      case 22:
      case 23:
      case 24:
      case 25:
      case 26:
      case 27:
      case 28:
      case 29:
      case 30:
      case 31:
      case 32:
      case 33:
      case 34:
      case 50:
      case 51:
      case 52:
      case 53:
      case 54:
      case 55:
      case 56:
         return "chart:bar";
      case 12:
      case 13:
         return "chart:scatter";
      case 35:
      case 36:
         return "chart:ring";
      case 37:
      case 38:
      case 39:
      case 40:
      case 41:
      case 42:
      case 43:
         return "chart:line";
      case 44:
      case 45:
      case 46:
      case 47:
      case 48:
      case 49:
         return "chart:circle";
      case 57:
      case 58:
      case 59:
         return "chart:radar";
      case 60:
      case 61:
      case 62:
      case 63:
      case 64:
         return "chart:scatter";
      case 65:
      case 66:
      case 67:
      case 68:
         return "chart:stock";
      case 69:
      case 70:
      case 71:
      case 72:
         return "chart:bar";
      default:
         return "chart:bar";
      }
   }

   public static boolean f(int var0) {
      switch(var0) {
      case 1:
      case 2:
      case 4:
      case 5:
      case 7:
      case 8:
      case 10:
      case 11:
      case 15:
      case 16:
      case 19:
      case 23:
      case 25:
      case 26:
      case 29:
      case 30:
      case 32:
      case 33:
      case 38:
      case 39:
      case 41:
      case 42:
      case 51:
      case 52:
      case 54:
      case 55:
         return true;
      case 3:
      case 6:
      case 9:
      case 12:
      case 13:
      case 14:
      case 17:
      case 18:
      case 20:
      case 21:
      case 22:
      case 24:
      case 27:
      case 28:
      case 31:
      case 34:
      case 35:
      case 36:
      case 37:
      case 40:
      case 43:
      case 44:
      case 45:
      case 46:
      case 47:
      case 48:
      case 49:
      case 50:
      case 53:
      default:
         return false;
      }
   }

   public static boolean g(int var0) {
      switch(var0) {
      case 6:
      case 7:
      case 8:
      case 9:
      case 10:
      case 11:
      case 24:
      case 25:
      case 26:
      case 31:
      case 32:
      case 33:
      case 53:
      case 54:
      case 55:
         return true;
      case 12:
      case 13:
      case 14:
      case 15:
      case 16:
      case 17:
      case 18:
      case 19:
      case 20:
      case 21:
      case 22:
      case 23:
      case 27:
      case 28:
      case 29:
      case 30:
      case 34:
      case 35:
      case 36:
      case 37:
      case 38:
      case 39:
      case 40:
      case 41:
      case 42:
      case 43:
      case 44:
      case 45:
      case 46:
      case 47:
      case 48:
      case 49:
      case 50:
      case 51:
      case 52:
      default:
         return false;
      }
   }

   public static boolean h(int var0) {
      switch(var0) {
      case 2:
      case 5:
      case 8:
      case 11:
      case 16:
      case 20:
      case 23:
      case 26:
      case 30:
      case 33:
      case 39:
      case 42:
      case 52:
      case 55:
         return true;
      case 3:
      case 4:
      case 6:
      case 7:
      case 9:
      case 10:
      case 12:
      case 13:
      case 14:
      case 15:
      case 17:
      case 18:
      case 19:
      case 21:
      case 22:
      case 24:
      case 25:
      case 27:
      case 28:
      case 29:
      case 31:
      case 32:
      case 34:
      case 35:
      case 36:
      case 37:
      case 38:
      case 40:
      case 41:
      case 43:
      case 44:
      case 45:
      case 46:
      case 47:
      case 48:
      case 49:
      case 50:
      case 51:
      case 53:
      case 54:
      default:
         return false;
      }
   }

   public static boolean i(int var0) {
      switch(var0) {
      case 44:
      case 45:
      case 46:
      case 47:
      case 48:
      case 49:
         return true;
      default:
         return false;
      }
   }

   public static boolean j(int var0) {
      switch(var0) {
      case 28:
      case 29:
      case 30:
      case 31:
      case 32:
      case 33:
      case 34:
         return true;
      default:
         return false;
      }
   }

   public static boolean k(int var0) {
      switch(var0) {
      case 61:
      case 62:
         return true;
      default:
         return false;
      }
   }

   public static String a(int var0, int var1) {
      switch(var0) {
      case 0:
         return "automatic";
      case 1:
         return "arrow-right";
      case 2:
         return "arrow-right";
      case 3:
         return "diamond";
      case 4:
         return "arrow-down";
      case 5:
         return "none";
      case 6:
         return "arrow-left";
      case 7:
         return "square";
      case 8:
         return "hourglass";
      case 9:
         return "arrow-up";
      case 10:
         return "bow-tie";
      default:
         return "automatic";
      }
   }

   public static double e(double var0) {
      return var0 / (double)a * 2.54D;
   }

   static String a(double var0, int var2) {
      return a(com.aspose.cells.b.a.zq.b((double)var2 / var0, 4)) + "in";
   }

   public static double a(WorksheetCollection var0, double var1) {
      double var3 = var1 / 72.0D;
      return var3 * 2.54D;
   }

   public static double b(WorksheetCollection var0, double var1) {
      int var3 = (int)(var1 * (double)var0.L() / 2.54D);
      return (double)var3;
   }

   public static double f(double var0) {
      return var0 * 2.54D;
   }

   public static String g(double var0) {
      return com.aspose.cells.b.a.zn.b((double)((int)((var0 + 0.005D) * 100.0D)) / 100.0D);
   }

   public static String a(ChartShape var0) {
      return com.aspose.cells.b.a.zo.a(var0.M().getIndex()) + "-" + com.aspose.cells.b.a.zo.a(var0.x());
   }

   public static String l(int var0) {
      switch(var0) {
      case 0:
         return "currency";
      case 1:
         return "number";
      case 2:
         return "date";
      case 3:
         return "time";
      case 4:
         return "bool";
      case 5:
         return "text";
      case 6:
         return "percentage";
      case 7:
      default:
         return "unknown";
      }
   }

   public static String m(int var0) {
      switch(var0) {
      case 0:
         return "text";
      case 1:
         return "textcontent";
      case 2:
         return "textproperties";
      case 3:
         return "currencysymbo";
      case 4:
         return "number";
      case 5:
         return "map";
      case 6:
         return "year";
      case 7:
         return "month";
      case 8:
         return "day";
      case 9:
         return "hours";
      case 10:
         return "minutes";
      case 11:
         return "seconds";
      case 12:
         return "ampm";
      case 13:
         return "fraction";
      case 14:
         return "scientificnumber";
      case 15:
         return "dayofweek";
      default:
         return "unknown";
      }
   }

   public static int w(String var0) {
      switch(b.a(var0)) {
      case 42:
         return 0;
      case 43:
      default:
         return 3;
      case 44:
         return 2;
      case 45:
         return 3;
      }
   }

   static int x(String var0) {
      switch(b.a(var0)) {
      case 46:
         return 0;
      case 47:
         return 1;
      case 48:
         return 2;
      default:
         return 3;
      }
   }
}
